#include "StdAfx.h"
#include "NetWorkManager.h"


NetWorkManager::NetWorkManager(void)
{
}

NetWorkManager::~NetWorkManager(void)
{
}




int NetWorkManager::startIOCPServer(void)
{
		DWORD dwThreadId = 0;
		HANDLE hThread = CreateThread(NULL, 0, ServerRoutine, &NetCtl, 0, &dwThreadId);
	//	CloseHandle(hThread);

		return 0;
}


int NetWorkManager::stopIOCPServer()
{
	
	return 0;
}


DWORD NetWorkManager::ServerRoutine(void* arg)
{
	//NetworkController* pNc=(NetworkController*)arg;
	NetworkController* pNc = new NetworkController();

	pNc->Init();
	pNc->AcceptProcess();
	return 0;
}